﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DAL;

namespace Prototype1
{
    public partial class Tests : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Guid id = new Guid("8A082656-587C-42FF-803B-6F321F2CF68C");

            ExpenseLine.StartNewChain(id);

            Guid[] x = ExpenseLine.RetrieveNextLevelOfAuthorizers(id);

            foreach (Guid g in x)
            {
                Response.Write(g + "<br \\>");
            }

            ExpenseLine.AcceptExpense(id, "pkunha@gmail.com");

            Response.Write("pkunha@gmail.com approved <br \\>");

            Guid[] l = ExpenseLine.RetrieveNextLevelOfAuthorizers(id);

            foreach (Guid g in l)
            {
                Response.Write(g + "<br \\>");
            }

            ExpenseLine.AcceptExpense(id, "teste3@teste.pt");
            Response.Write("teste3@teste.pt approved <br \\>");

            Response.Write(ExpenseLine.ApprovalComplete(id) + "<br \\>");
            
            
            
        }
    }
}
